package com.tmt.im.wallet.controler.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/4 22:41
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "RedPackageDetailInfo", description = "红包详情对象")
public class RedPackageDetailInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = -4727912536031205485L;

    @Schema(description = "红包记录ID")
    @JsonProperty("redPacketId")
    private Long id;

    @Schema(description = "红包标题")
    private String title;

    @Schema(description = "红包领取人数")
    @JsonProperty("totalNum")
    private int splitCount;

    @Schema(description = "群主ID")
    @JsonProperty("groupId")
    private Long sessionId;

    @Schema(description = "已经领取的额度")
    @JsonProperty("reciveAmount")
    private Long receivedAmount;

    @Schema(description = "红包事件类型")
    @JsonProperty("redpacketType")
    private int eventType;

    @Schema(description = "红包总额度")
    private Long sendAmount;

    @Schema(description = "发送人ID")
    @JsonProperty("sendId")
    private Long senderId;

    @Schema(description = "发送人头像地址")
    @JsonProperty("sendAvatar")
    private String senderAvatar;

    @Schema(description = "发送人级别")
    @JsonProperty("sendLevel")
    private int senderLevel;

    @Schema(description = "发送人昵称")
    @JsonProperty("sendName")
    private String senderName;

    @Schema(description = "发送时间")
    private Long sendTime;

    @Schema(description = "1、领取中,展示待领取信息；2、已领取完成，展示领取详情信息; 3、已退款; 4、领取成功，展示红包打开动画")
    @JsonProperty("type")
    private int actionType;

    @Schema(description = "红包领取详细列表")
    @JsonProperty("vos")
    private List<ReceivedDetailItem> receivedDetails;
}
